﻿@using Kairos.Controllers

@model IEnumerable<Kairos.Models.Vtom>

@{
    ViewBag.Title = "Alarmes";
}

<h2>Alarmes Vtom</h2>

@if (Model.Count() == 0)
{
    <p>
        Aucune alarme Vtom
    </p>
}
else
{
    <table>

        @foreach (var item in Model)
        {
            <tr>
                <td>
                    Le job <mark class="ui-corner-all">@Html.DisplayFor(modelItem => item.Titre)</mark> n'a pas de consigne associée.
                </td>
                @if (ViewBag.ShouldDisplayUI(Kairos.Roles.Administrator | Kairos.Roles.Worker))
                {
                    <td>
                        @Html.ActionLink("Affecter", "Edit", new { id = item.ID, reason = Reason.Affect })
                    </td>
                }
            </tr>
        }

    </table>

    @Html.Partial("_Pager")
}